package com.onix.scalecamerapreview.translate.OCR;

import java.util.List;

public class MsOcrBean {

    /**
     * language : en
     * textAngle : -2.0000000000000338
     * orientation : Up
     * regions : [{"boundingBox":"462,379,497,258","lines":[{"boundingBox":"462,379,497,74","words":[{"boundingBox":"462,379,41,73","text":"A"},{"boundingBox":"523,379,153,73","text":"GOAL"},{"boundingBox":"694,379,265,74","text":"WITHOUT"}]},{"boundingBox":"565,471,289,74","words":[{"boundingBox":"565,471,41,73","text":"A"},{"boundingBox":"626,471,150,73","text":"PLAN"},{"boundingBox":"801,472,53,73","text":"IS"}]},{"boundingBox":"519,563,375,74","words":[{"boundingBox":"519,563,149,74","text":"JUST"},{"boundingBox":"683,564,41,72","text":"A"},{"boundingBox":"741,564,153,73","text":"WISH"}]}]}]
     */
    //语言代码
    private String language;
    //旋转角度
    private double textAngle;
    //伤下
    private String orientation;
    private List<RegionsBean> regions;

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public double getTextAngle() {
        return textAngle;
    }

    public void setTextAngle(double textAngle) {
        this.textAngle = textAngle;
    }

    public String getOrientation() {
        return orientation;
    }

    public void setOrientation(String orientation) {
        this.orientation = orientation;
    }

    public List<RegionsBean> getRegions() {
        return regions;
    }

    public void setRegions(List<RegionsBean> regions) {
        this.regions = regions;
    }

    public static class RegionsBean {
        /**
         * boundingBox : 462,379,497,258
         * lines : [{"boundingBox":"462,379,497,74","words":[{"boundingBox":"462,379,41,73","text":"A"},{"boundingBox":"523,379,153,73","text":"GOAL"},{"boundingBox":"694,379,265,74","text":"WITHOUT"}]},{"boundingBox":"565,471,289,74","words":[{"boundingBox":"565,471,41,73","text":"A"},{"boundingBox":"626,471,150,73","text":"PLAN"},{"boundingBox":"801,472,53,73","text":"IS"}]},{"boundingBox":"519,563,375,74","words":[{"boundingBox":"519,563,149,74","text":"JUST"},{"boundingBox":"683,564,41,72","text":"A"},{"boundingBox":"741,564,153,73","text":"WISH"}]}]
         */

        private String boundingBox;
        private List<LinesBean> lines;

        public String getBoundingBox() {
            return boundingBox;
        }

        public void setBoundingBox(String boundingBox) {
            this.boundingBox = boundingBox;
        }

        public List<LinesBean> getLines() {
            return lines;
        }

        public void setLines(List<LinesBean> lines) {
            this.lines = lines;
        }

        public static class LinesBean {
            /**
             * boundingBox : 462,379,497,74
             * words : [{"boundingBox":"462,379,41,73","text":"A"},{"boundingBox":"523,379,153,73","text":"GOAL"},{"boundingBox":"694,379,265,74","text":"WITHOUT"}]
             */

            private String boundingBox;
            private List<WordsBean> words;

            public String getBoundingBox() {
                return boundingBox;
            }

            public void setBoundingBox(String boundingBox) {
                this.boundingBox = boundingBox;
            }

            public List<WordsBean> getWords() {
                return words;
            }

            public void setWords(List<WordsBean> words) {
                this.words = words;
            }

            public static class WordsBean {
                /**
                 * boundingBox : 462,379,41,73
                 * text : A
                 */

                private String boundingBox;
                private String text;

                public String getBoundingBox() {
                    return boundingBox;
                }

                public void setBoundingBox(String boundingBox) {
                    this.boundingBox = boundingBox;
                }

                public String getText() {
                    return text;
                }

                public void setText(String text) {
                    this.text = text;
                }
            }
        }
    }
}
